﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="ClassListByDBlick.aspx.cs"
    Inherits="LabMS.Web.BaseData.ClassListByDBlick" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>班级数据</title>
    <base target="_self" />
    <link type="text/css" rel="stylesheet" href="../style/screen.css" />
    <!--[if lte IE 6]>
    <link type="text/css" rel="stylesheet" href="../style/ie6.css" />
    <![endif]-->
    <!--[if lte IE 7]>
    <link type="text/css" rel="stylesheet" href="../style/ie7.css" />
    <![endif]-->

    <script type="text/javascript">
    function DbClickEvent(a,b)
    {  
          var ret = new Array(2); 
          ret[0] = a; 
          ret[1] = b;           
          window.returnValue = ret; 
          window.close();
          return false; 
    }
    </script>

</head>
<body class="mainBody">
    <form id="uiForm" runat="server">
        <div class="main">
            <div id="pageInfo" class="clearfix">
                <div class="title">
                    <label>
                        选择班级
                    </label>
                </div>
            </div>
        </div>
        <div class="main">
            <asp:GridView ID="gvClass" runat="server" AutoGenerateColumns="false" DataKeyNames="ID"
                CssClass="infoTable" Width="100%" OnPageIndexChanging="gvClass_PageIndexChanging"
                OnRowDataBound="gvClass_RowDataBound" AllowPaging="true" PageSize="5">
                <Columns>
                    <asp:TemplateField HeaderText="请选择" ItemStyle-Width="5%">
                        <ItemTemplate>
                            <asp:CheckBox ID="Chk" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="ID" />
                    <asp:BoundField DataField="Class_Code" HeaderText="班级编号" />
                    <asp:BoundField DataField="Class_Name" HeaderText="班级名称" />
                    <asp:BoundField DataField="Class_Year" HeaderText="年级" />
                    <asp:BoundField DataField="Class_StudentNum" HeaderText="班级人数" />
                    <asp:BoundField DataField="Class_Professional" HeaderText="专业" />
                </Columns>
                <EmptyDataTemplate>
                    无内容
                </EmptyDataTemplate>
                <HeaderStyle CssClass="header" />
                <PagerSettings FirstPageText="首页" LastPageText="最后页" NextPageText="后一页" PreviousPageText="前一页"
                    Mode="NextPreviousFirstLast" />
            </asp:GridView>
        </div>
    </form>
</body>
</html>

<script type="text/javascript" src="../js/jQuery/jquery-1.3.1.js"></script>

<script type="text/javascript">

        $(function(){
            /* 修改样式 */
            $("#gvClass > tbody > tr:even").not(":first").addClass("even");
            $("#gvClass > tbody > tr").not(":first")
                .hover(
                    function(){
                        $(this).addClass("hover");
                    },
                    function(){
                        $(this).removeClass("hover");
                });
        });
</script>

